<template>
  <div>
    <div class="demo-image">
      <div class="imageblock" v-for="fit in fits" :key="fit">
        <span class="demonstration">{{ fit }}</span>
        <el-image
          style="width: 100px; height: 100px"
          :src="url"
          :fit="fit"></el-image>
      </div>
    </div>
    
    
  </div>
</template>

<script>
  export default {
    data() {
      return {
        fits: ['fill', 'contain', 'cover', 'none', 'scale-down'],
        url: '../assets/lianpu.png',
        // urls:[

        // ]
      }
    }
  }
</script>

<style scoped>
.demo-image{
  width: 900px;
}
.imageblock{

}

</style>